package com.example.rbac.config;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class TestAutoProxyCreator implements MethodInterceptor{

//    @Override
//    protected Object[] getAdvicesAndAdvisorsForBean(Class<?> aClass, String s, TargetSource targetSource) throws BeansException {
//        System.out.println(targetSource);
//        System.out.println(aClass);
//        System.out.println(s);
//        return new Object[0];
//    }

    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println(methodInvocation);
        return null;
    }
}
